package com.ruoyi.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.domain.SysUser;
import org.babyfish.jimmer.sql.*;
import org.springframework.lang.Nullable;

import java.time.LocalDateTime;

import static com.ruoyi.common.core.constant.ServiceNameConstants.SYSTEM_SERVICE;

/**
 * Entity基类
 *
 * @author ruoyi
 */
@MappedSuperclass(acrossMicroServices = true)
public interface BaseEntity {



    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Nullable
    LocalDateTime createTime();

    /**
     * 更新时间
     */
    @Nullable
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime updateTime();

    /**
     * 备注
     */
    @Nullable
    String remark();

}
